<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <title>Form</title>
</head>
<body>
<div>

   <form action="" method="post" accept-charset="utf-8" enctype="multipart/form-data" >
<table border="1">
    <thead>
        <tr>
            <th>id</th> 
            <th>title</th> 
            <th>name</th> 
            <th>type</th> 
            <th>status</th> 
            <th>condition</th> 
            <th>操作</th> 
        </tr>
    </thead>
    <tbody>
        <foreach name='rows' item='row'>
        <tr>
            <td>{$row.id}</td>
            <td>{$row.title}</td>
            <td>{$row.name}</td>
            <td>{$row.type}</td>
            <td>{$row.status}</td>
            <td>{$row.condition}</td>
            <td><input type="checkbox" name="newRules[]" value="{$row.id}" <in name="row.id" value="$selRules">checked</in> /> </td>
        </tr>
        </foreach>
    </tbody>
</table>
    <input type="hidden" name="gid" value="{$gid}"/>
<p><input type="submit" value="提交">
</form>
</div>

</body>
</html>
